﻿@model IEnumerable<Site3AI.Models.QizSubject>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HospID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DepID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StatusID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tag)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ActionInterval)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreatorID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OwnerID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DescForDoctor)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DescForRecuper)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsSF36Subject)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SortIdx)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DescIfBad)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SubjectType)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DescIfFine)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HospID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DepID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StatusID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tag)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ActionInterval)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatorID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OwnerID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescForDoctor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescForRecuper)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsSF36Subject)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SortIdx)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescIfBad)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SubjectType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescIfFine)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
